﻿<UserControl x:Class="jSLCore.Client.Presentation.Controls.Loading"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Width="128" Height="32">
	<UserControl.Resources>        
		    <Style x:Key="RectangleStyle" TargetType="Rectangle">
			    <Setter Property="Margin" Value="10"/>
			    <Setter Property="Fill" Value="#FF8A9E91"/>
			    <Setter Property="RadiusX" Value="5"/>
			    <Setter Property="RadiusY" Value="5"/>
		    </Style>		   
        <Storyboard             
                x:Name="MainAnime" x:Key="MainAnime" 
                AutoReverse="True" RepeatBehavior="Forever">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <EasingColorKeyFrame KeyTime="00:00:00" Value="#FF27EB6F"/>
                <EasingColorKeyFrame KeyTime="00:00:00.2000000" Value="#FF8EAF9A"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <EasingColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF2ED869"/>
                <EasingColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF8FAF9A"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle2" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <EasingColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF18CE58"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources> 
	<Grid>
	<Grid.ColumnDefinitions>
	<ColumnDefinition/>
	<ColumnDefinition/>
	<ColumnDefinition/>
	</Grid.ColumnDefinitions>
	<Rectangle x:Name="rectangle" Grid.Column="0" Style="{StaticResource RectangleStyle}"/>
	<Rectangle x:Name="rectangle1" Grid.Column="1" Style="{StaticResource RectangleStyle}"/>
	<Rectangle x:Name="rectangle2" Grid.Column="2" Style="{StaticResource RectangleStyle}"/>
	</Grid>
</UserControl>
